﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="bbs.aspx.cs"
    Inherits="chatblog.bbs" Title="老友故事" %>
<%@ Register Src="login/login.ascx" TagName="login" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            color: Red;
            font-weight: bold;
        }
        .style3
        {
            color: #FFFFFF;
        }
        .style4
        {
        }
        .style5
        {
        }
        .style6
        {
            width: 25%;
        }
        .*
        {
            margin: 0;
            padding: 0;
            font-size: small;
        }
        .style7
        {
            width: 92px;
            height: 23px;
            background-image: url(../images/userButton3.gif);
            background-position: center;
            background-repeat: no-repeat;
            text-align: center;
        }
    </style>
    <style type="text/css">
        
        .oa A:link
        {
            color: #0000FF;
        }
        .oa A:visited
        {
            color: #800080;
        }
        .oa A:hover
        {
            color: #0000FF;
        }
        .oa A:active
        {
           
            color:Black;
        }
        .oa A
        { 
        	text-decoration:underline;
        }
        
        </style>
    <script type="text/javascript">
        function selectButtonClick(textboxid)
        {           
            window.open ('../bbs/selectarea.aspx'+'?id='+textboxid,'dd','height=400, width=600, top=100,left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div style="background-image: url(../img/background.jpg); background-position: left;
        background-repeat: repeat-x; vertical-align: middle; line-height: 25px;">
        <table style="width: 100%;">
            <tr>
                <td class="oa">
                    <a href="http://www.f980.com" target="_blank">藏宝网</a>

                </td>
                <td style="width: 500px; text-align: right;">
                    <uc1:login ID="login1" runat="server" />
                </td>
            </tr>
        </table>
    </div>

    <div style="width: 100%; height: 100px;">
        <table style="width: 100%">
            <tr>
                <td>
                    <asp:Literal ID="Literal_logolink" runat="server"></asp:Literal>
                </td>
                <td style="text-align: right">
                    <asp:Literal ID="Literal_adv1" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 100%; height: 50px; background-image: url(../images/menu_bg.gif);
        background-position: top; background-repeat: repeat-x; border-top-color: Gray;
        border-top-width: 1px; border-top-style: solid; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid;">
        <table style="width: 100%; margin-top: 3px;">
            <tr>
                <td>
                    <asp:Panel ID="Panel_area" runat="server">
                        <asp:Button ID="Button_all" runat="server" Text="全部区域" OnClick="Button_all_Click" />
                        <asp:Button ID="Button_bj" runat="server" Text="北京" OnClick="Button_bj_Click" />
                        <asp:Button ID="Button_sh" runat="server" Text="上海" OnClick="Button_sh_Click" />
                        <asp:Button ID="Button_gz" runat="server" Text="广东" OnClick="Button_gz_Click" />
                        <asp:Button ID="Button_qt" runat="server" Text="其他" OnClick="Button_qt_Click" />
                        <asp:Label ID="Label_area" runat="server" Text="当前区域:全部"></asp:Label>
                    </asp:Panel>
                    <asp:HyperLink ID="HyperLink_link" runat="server" NavigateUrl="~/bbs.html">老友故事社区</asp:HyperLink>
                </td>
                <td style="width: 340px;">
                    <%--设置 &nbsp; 我的帖子 &nbsp;我的回帖&nbsp;用户中心&nbsp;搜索&nbsp;查看新帖&nbsp;<br />--%>
                    <%--<asp:Label ID="Label_lastvisit" runat="server" Text="你还未登录,亲登陆."></asp:Label>--%>
                    今日:<asp:Label ID="Label_today" runat="server" Text="0"></asp:Label>, 昨日:<asp:Label
                        ID="Label_yestoday" runat="server" Text="0"></asp:Label>, 总数:<asp:Label ID="Label_sum"
                            runat="server" Text="0"></asp:Label>
                    <br />
                    <a href="bbs/search.aspx">搜索论坛</a>
                    <asp:Label ID="Label_keyongjifen" runat="server" Text="可用分:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label_zhuanjiajifen" runat="server" Text="专家分:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label1_fatieshu" runat="server" Text="发帖数:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label1_huitieshu" runat="server" Text="回帖数:0" Visible="false"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table style="width: 100%">
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Panel ID="Panel_q" runat="server" Visible="false">
                        <table>
                            <tr>
                                <td class="style7">
                                    <a href="../bbs/selbbscatanew.aspx?id=1">提出问题</a>
                                </td>
                                <td class="style7">
                                    <a href="../bbs/dhdwt.aspx">待回答问题</a>
                                </td>
                                <td class="style7">
                                    <a href="../bbs/ydwt.aspx">已答问题</a>
                                </td>
                                <%--<td class="style7">
    <a href="../bbs/selbbscatanew.aspx?id=2">写作笔记</a>
    </td>    
    <td class="style7">
    <a href="../bbs/selbbscatanew.aspx?id=2">我的笔记</a>
    </td>    
    <td class="style7">
    笔记列表
    </td>  --%>
                                <td class="style7">
                                    <a href="../bbs/jinghua.aspx">精华帖</a>
                                </td>
                                <td class="style7">
                                    <a href="../bbs/search.aspx">全文搜索</a>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td style="width: 220px; text-align: right;">
                    <asp:Literal ID="Literal_chatroom" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
    </div>
    <table class="style1">
        <tr>
            <td>
                <asp:Literal ID="Literal_adv2" runat="server"></asp:Literal>
                <asp:Panel ID="Panel_gonggao" runat="server">
                </asp:Panel>
                <asp:Panel ID="Panel_paihang" runat="server">
                    <div style="border-bottom-color: Gray; border-bottom-style: solid; border-bottom-width: 1px;
                        border-left-color: Gray; border-left-style: solid; border-left-width: 1px; border-right-color: Gray;
                        border-right-style: solid; border-right-width: 1px;">
                        <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
                            <tr style="background-color: #E20004; height: 20px;">
                                <td class="style4">
                                    <span class="style3">&nbsp; <b>最新发帖</b></span>
                                </td>
                                <td class="style5">
                                    <span class="style3">&nbsp; <b>本月热帖</b></span>
                                </td>
                                <td style="width: 200px;">
                                    <span class="style3">&nbsp; <b>今日排行</b></span>
                                </td>
                                <td style="width: 200px;">
                                    <span class="style3">&nbsp; <b>今年排行</b></span>
                                </td>
                            </tr>
                            <tr style="vertical-align: top;">
                                <td class="style4">
                                    <asp:GridView ID="GridView_newnotes" runat="server" AutoGenerateColumns="False" BorderColor="#F0F0F0"
                                        BorderStyle="Solid" Width="100%" ShowHeader="false" PagerStyle-Wrap="false">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <a href='<%#ResolveUrl("~/bbsview/") +Eval("cblistid")+".html"%>'>
                                                        <%#RuleCode.Table.cbuser.CutString(  Eval("cbtitle").ToString(),38,"..")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                                <td class="style5">
                                    <asp:GridView ID="GridView_mth" runat="server" AutoGenerateColumns="False" BorderColor="#F0F0F0"
                                        BorderStyle="Solid" Width="100%" ShowHeader="false">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <a href='<%#ResolveUrl("~/bbsview/") +Eval("cblistid")+".html"%>'>
                                                        <%#RuleCode.Table.cbuser.CutString(  Eval("cbtitle").ToString(),38,"..")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                                <td style="width: 200px;">
                                    <asp:GridView ID="GridView_today" runat="server" AutoGenerateColumns="False" BorderColor="#F0F0F0"
                                        BorderStyle="Solid" Width="100%" ShowHeader="false">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">&nbsp;<%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a>
                                                    &nbsp;&nbsp;<%#Eval("shuliang")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                                <td style="width: 200px;">
                                    <asp:GridView ID="GridView_year" runat="server" AutoGenerateColumns="False" BorderColor="#F0F0F0"
                                        BorderStyle="Solid" Width="100%" ShowHeader="false">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">&nbsp;<%#chatblog.zfunction.getnick( Eval("cbuserid").ToString())%></a>
                                                    &nbsp;&nbsp;<%#Eval("shuliang")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="DataList_all" runat="server" Width="100%" DataKeyField="cbcataid"
                    OnItemDataBound="DataList_all_ItemDataBound">
                    <ItemTemplate>
                        <table style="width: 100%; border: 0px; margin: 0px; padding: 0px; height: 31px;
                            border-top-color: Gray; border-top-width: 1px; border-top-style: solid; border-right-color: Gray;
                            border-right-width: 1px; border-right-style: solid; border-left-color: Gray;
                            border-left-width: 1px; border-left-style: solid;">
                            <tr>
                                <td style="width: 100%; background-image: url(../images/header_bg.gif); background-position: top;
                                    background-repeat: repeat-x;">
                                    <div style="margin-top: 5px;">
                                        <span class="style2">&nbsp;&nbsp;&nbsp;<%#Eval("cbname")%></span></div>
                                </td>
                            </tr>
                        </table>
                        <asp:GridView ID="GridView_in" runat="server" DataKeyNames="cbcataid" Width="100%"
                            BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" AutoGenerateColumns="False"
                            CaptionAlign="Top" CellPadding="0" GridLines="None">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; padding-top: 5px;
                                            background-image: url(../images/forum1.gif); border-bottom-color: #C1C1C1; border-bottom-width: 1px;
                                            border-bottom-style: solid; background-position: left; line-height: 17px; background-repeat: repeat;
                                            background-color: #F2F2F2;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td style="width: 50px;">
                                                    </td>
                                                    <td>
                                                        <a href='<%#ResolveUrl("~/bbscata/") +Eval("cbcataid")+".html"%>' style="text-decoration: none;">
                                                            <span style="font-weight: bold; color: Black;">
                                                                <%#Eval("cbname")%></span></a><br />
                                                        <span style="color: Gray;">
                                                            <%#Eval("jcdesc").ToString()%></span>
                                                        <br />
                                                        <span style="color: Gray;">
                                                            <%#RuleCode.Table.cbcata.getbanzhulink(Eval("cbcataid").ToString())%></span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/cat_bg.gif);
                                            line-height: 26px; background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版块</span></div>
                                        </div>
                                    </HeaderTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="70px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top: 5px; border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <br />
                                            <%#chatblog.zfunction.getchatroomlink("2",Eval("RECID").ToString())%>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">聊天室</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="70px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top: 5px; border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;">
                                            <br />
                                            <%#Eval("zhutishu").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">主题</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="50px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top: 5px; border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <br />
                                            <%#Eval("fatieshu").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">帖子</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="50px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="260px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top: 5px; border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <a href='<%#ResolveUrl("~/bbsview/") +Eval("lastlistid")+".html"%>'>
                                                <%#RuleCode.Table.cbuser.CutString(  Eval("cbtitle").ToString(),36,"..")%>
                                            </a>
                                            <br />
                                            <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">
                                                <%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a>
                                            <br />
                                            <%#Eval("lastcreatedate").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900; border-right-color: Gray; border-right-width: 1px;
                                            border-right-style: solid;">
                                            <span style="font-weight: bold; color: White;">最后发表</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="260px"></ItemStyle>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Left" BorderWidth="0px" Height="26px"></HeaderStyle>
                        </asp:GridView>
                        <div style="height: 5px;">
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Literal ID="Literal_adv3" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
</asp:Content>
